package tedu.study.ooday02_2;

public class ExtendsTest {
    public static void main(String[] args) {
        Student stu = new Student("学生",18,"ZX","001","2203");
        /*stu.name = "学生";
        stu.age = 18;
        stu.address = "ZX";
        stu.stuId = "001";
        stu.className = "2203";*/
        stu.eat();
        stu.sleep();
        stu.sayHi();
        stu.study();

        Teacher tea = new Teacher("老师",50,"AS",3000);
        /*tea.name = "老师";
        tea.age = 50;
        tea.address = "AS";
        tea.salary = 3000;*/
        tea.eat();
        tea.sayHi();
        tea.sleep();
        tea.teach();

        Doctor doc = new Doctor("医生",60,"QW","qqqqq");
        /*doc.name = "医生";
        doc.age = 60;
        doc.address = "QW";
        doc.title = "qqqqq";*/
        doc.eat();
        doc.sleep();
        doc.sayHi();
        doc.cut();

    }
}
